package com.lanyam.travel.base.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lanyam.travel.base.entity.PanicBuy;
import com.lanyam.travel.base.entity.Product;
import com.lanyam.travel.base.entity.vo.PanicBuyVo;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author rosson
 * @since 2020-01-27
 */
public interface IPanicBuyService{

	void addPanicBuy(PanicBuy panicBuy);

	List<PanicBuyVo> getAllPanicBuy();

	void updatePanicBuy(PanicBuy panicBuy);

	void deletePanicBuyById(String id);

	PanicBuyVo queryPanicBuyInfoById(String id);

	PanicBuy queryPanicBuyById(String id);

	void updatePanicBuyStatus(String id, int status);

	List<Product> queryProductByType(int productType);

	Page<PanicBuyVo> getPanicBuyPage(int page, int pageSize, Map<String, Object> reqPara);

	List<Product> getProductByUserAndType(String userId, int productType);

}
